<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class District extends BaseModel
{
    use HasFactory;
    protected $table="district";
    protected $fillable=[
        'id',
        'name',
        'pid',
    ];


    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }
}
